package com.bush.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;

import com.bush.mall.common.entity.Result;;
import com.bush.mall.product.entity.BrandEntity;
import com.bush.mall.product.entity.dto.BrandDTO;

import java.util.List;

/**
 * 品牌
 * @author RUN
 * @date 2022-11-28
 */
public interface BrandService extends IService<BrandEntity> {

    public static final String BEAN_ID = "mall.brandService";

    /**
     * 分页查询品牌列表
     * @author RUN
     * @date 2022-11-28
     */
     Result queryForPage(BrandDTO dto);


    /**
     * 创建品牌表单对象
     * @author RUN
     * @date 2022-11-28
     */
     Result saveBrand(BrandEntity brand);


    /**
     * 修改品牌表单对象
     * @author RUN
     * @date 2022-11-28
     */
     Result updateBrand(BrandEntity brand);

    /**
     * 删除指定ID的品牌
     * @author RUN
     * @date 2022-11-28
     */
     Result deleteBrand(Long id);

    /**
     * 更改是否显示品牌状态
     * @param id id
     * @return {@link Result}
     */
    Result changeStstua(Long id);

    /**
     * 批量删除品牌
     * @param ids id
     * @return {@link Result}
     */
    Result deleteBatchBrand(List<Long> ids);
}

